
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Employee;
import cn.edu.scau.cmi.hombio.domain.Sale;
import cn.edu.scau.cmi.hombio.domain.SalePig;
import cn.edu.scau.cmi.hombio.domain.Task;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Sale entities
 * 
 */
public interface SaleService {

	/**
	* Load an existing Sale entity
	* 
	 */
	public Set<Sale> loadSales();

	/**
	* Delete an existing Sale entity
	* 
	 */
	public void deleteSale(Sale sale);

	/**
	* Delete an existing Employee entity
	* 
	 */
	public Sale deleteSaleEmployee(Integer sale_id, Integer related_employee_id);

	/**
	* Save an existing Employee entity
	* 
	 */
	public Sale saveSaleEmployee(Integer id, Employee related_employee);

	/**
	* Return a count of all Sale entity
	* 
	 */
	public Integer countSales();

	/**
	* Return all Sale entity
	* 
	 */
	public List<Sale> findAllSales(Integer startResult, Integer maxRows);

	/**
	* Save an existing Task entity
	* 
	 */
	public Sale saveSaleTask(Integer id_1, Task related_task);

	/**
	 */
	public Sale findSaleByPrimaryKey(Integer id_2);

	/**
	* Delete an existing Task entity
	* 
	 */
	public Sale deleteSaleTask(Integer sale_id_1, Integer related_task_id);

	/**
	* Delete an existing SalePig entity
	* 
	 */
	public Sale deleteSaleSalePigs(Integer sale_id_2, Integer related_salepigs_id);

	/**
	* Save an existing Sale entity
	* 
	 */
	public void saveSale(Sale sale_1);

	/**
	* Save an existing SalePig entity
	* 
	 */
	public Sale saveSaleSalePigs(Integer id_3, SalePig related_salepigs);
}